﻿using System.Collections.Concurrent;

namespace Scheduler
{
    public interface IPassWorker
    {
        ConcurrentQueue<WorkerHandleResult> Buffer { get; }
        /// <summary>
        /// 检查缓存
        /// </summary>
        /// <returns></returns>
        bool HasInBuffer();
       /// <summary>
       /// 添加缓存
       /// </summary>
       /// <param name="whr"></param>
        void AddToBuffer(WorkerHandleResult whr);
    }
}